from entelib.news.models import News

from django.forms import ModelForm
class NewsForm(ModelForm):
    class Meta:
        model = News

from django.shortcuts import render_to_response

def edit_news(request, object_id):
    news = News.objects.get(pk=object_id)
    form = NewsForm(instance=news)
    return render_to_response('news/edit_form.html', {'forma': form})
